var express = require('express');
var router = express.Router();

/* GET home page. */
router.get('/', function(req, res, next) {
  res.render('index', {
    navigationArr: [
      {name : "优选案例" ,url : "/case" ,isActive : true ,target:""},
      {name : "设计师" ,url : "/designer" ,isActive : false ,target:""},
      {name : "在建工地" ,url : "/site" ,isActive : false,target:""},
      {name : "深度楼盘" ,url : "/other" ,isActive : false ,target :""},
      {name : "申远精工" ,url : "/shanghai/hire" ,isActive : false,target:""},
      {name : "别墅部品" ,url : "/shanghai/mast" ,isActive : false ,target:""},
      {name : "别墅整装" ,url : "/shanghai/QA" ,isActive : false,target:""},
      {name : "用户服务" ,url : "/act/p150728/" ,isActive : false,target :""},
      {name : "关于申远" ,url : "/shanghai/hire" ,isActive : false,target :""}
    ],
  });
});

router.get('/index', function(req, res, next) {
  res.render('index', { title: 'Express',isActive: true });
});

router.get('/case', function(req, res, next) {
  res.render('case/index', { title: 'Express',isActive: true });
});

router.get('/case/detail', function(req, res, next) {
  res.render('case/detail', { title: 'Express',isActive: true });
});

router.get('/designer', function(req, res, next) {
  res.render('designer/index', { title: 'Express',isActive: true });
});

router.get('/designer/detail', function(req, res, next) {
  res.render('designer/detail', { title: 'Express',isActive: true });
});

router.get('/site', function(req, res, next) {
  res.render('site/index', { title: 'Express',isActive: true });
});

router.get('/site/detail', function(req, res, next) {
  res.render('site/detail', { title: 'Express',isActive: true });
});

router.get('/houses', function(req, res, next) {
  res.render('houses/index', { title: 'Express',isActive: true });
});

router.get('/houses/detail', function(req, res, next) {
  res.render('houses/detail', { title: 'Express',isActive: true });
});

router.get('/other/common', function(req, res, next) {
  res.render('other/common', { title: 'Express',isActive: true });
});

router.get('/other/houses', function(req, res, next) {
  res.render('other/houses', { title: 'Express',isActive: true });
});

router.get('/other/culture', function(req, res, next) {
  res.render('other/culture', { title: 'Express',isActive: true });
});


module.exports = router;
